﻿<%@ Page Title="Item Allocation" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="Allocation.aspx.cs" Inherits="KorleBu.Allocation" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<%--<asp:Content ID="Content2" ContentPlaceHolderID="errorContentPlaceholder" runat="server">
</asp:Content>--%>
<asp:Content ID="Content3" ContentPlaceHolderID="sidebarcontentplaceholder" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="maincontentplaceholder" runat="server">
    <div id="ebar">
        <asp:Label runat="server" ID="lblMasterError" CssClass="errorLabel" />
    </div>
    <asp:ScriptManager ID="ScriptManager" runat="server"></asp:ScriptManager> 
    <asp:UpdatePanel ID="UpdatePanel" runat="server">
        <ContentTemplate>
            <fieldset>
                <legend>Sub Unit</legend>
                <asp:Label ID="lblSearchSubUnitName" runat="server">Select Sub Unit Name:</asp:Label>
                <asp:DropDownList ID="ddlSubUnitList" runat="server" OnSelectedIndexChanged="ddlSubUnitList_SelectedIndexChanged" AutoPostBack="true">
                </asp:DropDownList>
                <br />
            </fieldset>
            <fieldset style="width: 573px; min-height: 176px;">
                            <br />
                            <asp:GridView ID="gvAllocation" runat="server" AutoGenerateColumns="False" onrowcommand="gvAllocation_RowCommand">
                                <Columns>
                                    <asp:BoundField DataField="ItemID" HeaderText="No." />
                                    <asp:BoundField DataField="ItemName" HeaderText="Name" />
                                    <asp:BoundField DataField="StoreUnitQuantity" HeaderText="Qty">
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="QuantityNotAllocated" HeaderText="Available">
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="MarkupCost" HeaderText="Cost" />
                                    <asp:TemplateField ConvertEmptyStringToNull="False">
                                        <EditItemTemplate>
                                            <asp:DynamicControl ID="DynamicControl1" runat="server" DataField="" Mode="Edit" />
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtFill" runat="server" Height="23px" Width="37px"></asp:TextBox>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:ButtonField ButtonType="Button" CommandName="Fill" Text="Allocate" />
                                </Columns>
                            </asp:GridView>    
                            <br />
                        </fieldset>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
